1 /* Copyright 2007-2011 The MathWorks, Inc. */
2
3 /*
4 * File: xil_data_stream.h
5 *
6 * SIL/PIL data stream
7 */
8
9 #ifndef __XIL_DATA_STREAM_H__
10 #define __XIL_DATA_STREAM_H__
11
12 #include "xil_common.h"
13
14 /* define some error codes */
15 typedef enum {XIL_DATA_STREAM_SUCCESS=0,
16 XIL_READ_DATA_ERROR,
17 XIL_WRITE_DATA_ERROR,
18 XIL_DATA_FLUSH_ERROR} XIL_DATA_STREAM_ERROR_CODE;
19
20 /* copy specified amount of data from the input stream to the address specified */
21 XIL_DATA_STREAM_ERROR_CODE xilReadData(MemUnit_T *, uint32_T);
22 /* copy specified amount of data from the address specified to the output stream */
23 XIL_DATA_STREAM_ERROR_CODE xilWriteData(const MemUnit_T *, uint32_T);
24 /* flush any buffered writes */
25 XIL_DATA_STREAM_ERROR_CODE xilDataFlush(void);
26
27 #endif
28
|